package com.kinggm.service.observer.impl;



import java.util.Scanner;

public class MainTest {

    public static void main(String[] args) {

        float t;
        float h;
        float p;
        WeatherDataNew weatherDataNew = new WeatherDataNew();
        CurrentConditionsDisplayNew currentConditionsDisplayNew = new CurrentConditionsDisplayNew(weatherDataNew);
        Scanner scanner = new Scanner(System.in);
        while (true){
            System.out.println("请输入温度：");
            t = scanner.nextFloat();
            System.out.println("请输入湿度：");
            h = scanner.nextFloat();
            System.out.println("请输入气压：");
            p = scanner.nextFloat();
            weatherDataNew.setMeasurements(t,h,p);
        }


    }

}
